package com.nefu.store.store.controller;


import com.nefu.music.common.result.HttpResult;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;



@Tag(name = "测试nacos的api")
@RestController
public class NacosController {

    @Value("${spring.datasource.druid.url}")
    private String url;

    @Operation(summary = "获取nacos的配置值")
    @GetMapping("/helloNacos")
    public HttpResult<String> helloNacos(){
        return HttpResult.success(url);
    }

}
